package com.hfjava.practice05;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: com.hfjava.practice05
 * @ClassName: TrainTicket
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/27 9:34
 * @Copyright 大牛版板所有
 */
public class TrainTicket {
    private int surplusTicket = 100;

    public int getSurplusTicket(){
        return surplusTicket;
    }

    public int saleTicket(){
        surplusTicket = surplusTicket -1;
        return surplusTicket;
    }
}
